<html>
<head><meta charset="utf-8"><title>github search rate limit · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html">github search rate limit</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="198703371"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703371" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703371">(May 25 2020 at 21:25)</a>:</h4>
<p>have someone played with github search api?</p>



<a name="198703427"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703427" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703427">(May 25 2020 at 21:26)</a>:</h4>
<p>we were doing some automation with <span class="user-mention" data-user-id="116114">@Paul Faria</span> and hitted the api requests limits</p>



<a name="198703475"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703475" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703475">(May 25 2020 at 21:27)</a>:</h4>
<p>getting 403, <code>X-RateLimit-Remaining = 0</code> and <code>X-RateLimit-Reset = N</code></p>



<a name="198703529"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703529" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703529">(May 25 2020 at 21:28)</a>:</h4>
<p>at that point what we do is do the math with that N and the current system time to sleep and then retry again</p>



<a name="198703565"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703565" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703565">(May 25 2020 at 21:29)</a>:</h4>
<p>but surprisingly we get 403 again and <code>X-RateLimit-Remaining = M</code> M &gt;0</p>



<a name="198703615"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703615" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703615">(May 25 2020 at 21:30)</a>:</h4>
<p>and then at some point, we couldn't figure out why the code gets stucked</p>



<a name="198703620"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703620" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703620">(May 25 2020 at 21:30)</a>:</h4>
<p>if someone have played with this and want to share ideas would be more than welcome :)</p>



<a name="198703656"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703656" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703656">(May 25 2020 at 21:31)</a>:</h4>
<p>I know <span class="user-mention silent" data-user-id="116122">simulacrum</span> did not, because they've just told me ... cc <span class="user-mention" data-user-id="255061">@LeSeulArtichaut</span> <span class="user-mention" data-user-id="219696">@XAMPPRocky</span></p>



<a name="198703668"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703668" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703668">(May 25 2020 at 21:31)</a>:</h4>
<p>The search API has special rate limits</p>



<a name="198703711"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703711" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> XAMPPRocky <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703711">(May 25 2020 at 21:32)</a>:</h4>
<p><span class="user-mention" data-user-id="255061">@LeSeulArtichaut</span> wrote a rate limit feature for octocrab, I don’t know how finished it is.</p>



<a name="198703728"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703728" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703728">(May 25 2020 at 21:32)</a>:</h4>
<p><em>Well, not finished</em> x)</p>



<a name="198703751"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703751" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703751">(May 25 2020 at 21:33)</a>:</h4>
<p><span class="user-mention" data-user-id="116266">@Santiago Pastorino</span> See <a href="https://developer.github.com/v3/search/#rate-limit">https://developer.github.com/v3/search/#rate-limit</a></p>



<a name="198703762"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198703762" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198703762">(May 25 2020 at 21:33)</a>:</h4>
<blockquote>
<p>The Search API has a custom rate limit. For requests using Basic Authentication, OAuth, or client ID and secret, you can make up to 30 requests per minute. For unauthenticated requests, the rate limit allows you to make up to 10 requests per minute.</p>
</blockquote>



<a name="198704737"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198704737" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198704737">(May 25 2020 at 21:56)</a>:</h4>
<p>yeah I know all that</p>



<a name="198704771"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198704771" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198704771">(May 25 2020 at 21:57)</a>:</h4>
<p>the problem is that I wait for the limit and re-request and get failures anyway</p>



<a name="198704780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198704780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198704780">(May 25 2020 at 21:58)</a>:</h4>
<p>so I was wondering of someone has gone through this problems to see how they've sorted them out</p>



<a name="198705781"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/github%20search%20rate%20limit/near/198705781" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Léo Lanteri Thauvin <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/github.20search.20rate.20limit.html#198705781">(May 25 2020 at 22:21)</a>:</h4>
<p>Sorry, I don’t know anything that’s not in the docs <span aria-label="confused" class="emoji emoji-1f615" role="img" title="confused">:confused:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>